package org.nf.trading.service.app.product.impl;



import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nf.trading.dao.ProductTypeMapper;
import org.nf.trading.entity.ProductType;
import org.nf.trading.service.app.product.ProductTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Slf4j
@RequiredArgsConstructor
@Transactional
public class ProductTypeServiceImpl implements ProductTypeService {
    private final ProductTypeMapper productTypeMapper;

    /**
     * 查询全部商品类型
     * @return
     */
    @Override
    public List<ProductType> selectAll() {
        return productTypeMapper.selectAll();
    }
}
